<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>
<%
	int status = Integer.parseInt(String.valueOf(request.getAttribute("state")));
	String navTabId = String.valueOf(request.getParameter("navTabId"));
	if(status==200){
		%>
		<script type="text/javascript">
	var statusCode="200";
	var message="操作成功！";
	var navTabId="<%=navTabId%>";
	var forwardUrl=""; 
	var callbackType="closeCurrent";
	var response = {statusCode:statusCode,
		message:message,
		navTabId:navTabId,
		forwardUrl:forwardUrl,
		callbackType:callbackType
	};
	if(window.parent.donecallback) window.parent.donecallback(response);
</script>
		<%
	}
	else{
		%>
		<script type="text/javascript">
	var statusCode="300";
	var message="操作失败！";
	var navTabId="";
	var forwardUrl=""; 
	var callbackType="";
	var response = {statusCode:statusCode,
		message:message,
		navTabId:navTabId,
		forwardUrl:forwardUrl,
		callbackType:callbackType
	};
	if(window.parent.donecallback) window.parent.donecallback(response);
	</script>
		<%
	}
%>

